package com.jzo2o.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import com.jzo2o.customer.model.domain.AddressBook;
import com.jzo2o.customer.model.dto.request.AddressBookPageQueryReqDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 地址薄 Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-06
 */
public interface AddressBookMapper extends BaseMapper<AddressBook> {
    /**
     * 分页查询机构
     *
     * @param addressBookPageQueryReqDTO 分页查询请求体
     * @return 机构列表
     */
    List<AddressBookResDTO> queryAddressBookList(
            @Param("dto") AddressBookPageQueryReqDTO addressBookPageQueryReqDTO,
            @Param("userId") Long userId
    );

    void removeByIds(List<Long> ids);
}
